package org.example.crm.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.crm.base.BaseMapper;
import org.example.crm.model.User;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface UserMapper extends BaseMapper<User, Integer> {


    User queryByName(String username);


    List<Map<String, Object>> queryAllSales();

    User selectByUserName(String userName);

    List<Map<String, Object>> queryAllCustomerManagers();
}